package inerface;

import org.junit.Test;

public class Demo implements MyInterface{
    @Override
    public void add(int a, int b) {
        int ac=a+b;
        System.out.println(ac);
    }
    public void test( MyInterface myInterface){
        myInterface.add(3,5);
    }
    @Test
    public void test2(){
        test(new Demo());
    }
}
